home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Human Interface Toolbox / Tabs LDEF / Prototypes.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  2.4 KB  |  99 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        Prototypes.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by:     
  7.  
  8.     Copyright:    Copyright © 1995-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/10/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23. #ifndef __PROTOTYPES__
  24. #define __PROTOTYPES__
  25.  
  26.  
  27.  
  28. // System Includes
  29. #ifndef __WINDOWS__
  30.     #include <Windows.h>
  31. #endif
  32.  
  33.  
  34.  
  35.  
  36.  
  37. // Application Includes
  38. #ifndef __BAREBONES__
  39.     #include "BareBones.h"
  40. #endif
  41.  
  42.  
  43.  
  44.  
  45.  
  46. // BareBones.c
  47. void        main ( void );
  48.  
  49.  
  50. // Initialize.c
  51. void        InitToolbox ( void );
  52. void        InitApplication ( void );
  53.  
  54.  
  55. // AppleEventStuff.c
  56. OSErr        InstallAppleEventHandlers ( void );
  57.  
  58.  
  59. // Events.c
  60. void        EventLoop ( void );
  61.  
  62.  
  63. // Windows.c
  64. void        CreateWindow ( void );
  65. WindowRef    DestroyWindow ( WindowRef windowRef );
  66. OSErr        CreateListWindow ( WindowRef* windowRef, tContentsProcPtr contentsProc, void* refCon );
  67. void        DoActivate ( EventRecord* theEvent );
  68. void        DoUpdate ( EventRecord* theEvent );
  69. void        DoContentClick ( WindowRef theWindow, EventRecord* theEvent );
  70. void        DoDragWindow ( WindowRef theWindow, EventRecord* theEvent );
  71.  
  72.  
  73. // Menus.c
  74. void        MenuDispatch ( SInt32 menuResult );
  75.  
  76.  
  77. // Lists.c
  78. Boolean        HandleListClick ( WindowRef theWindow, EventRecord* event );
  79. void        AddToList ( ListRef theList, Str255 theString );
  80. void        GetListRect ( ListRef theList, Rect* theRect );
  81. void        LocalToGlobalRect ( Rect* theRect );
  82.  
  83.  
  84. // Utilities.c
  85. StringPtr    CopyPStr ( Str255    inSourceStr, StringPtr outDestStr, SInt16 inDestSize );
  86. StringPtr    ConcatPStr ( Str255 ioFirstStr, Str255 inSecondStr, SInt16 inDestSize );
  87. void        OSTypeToPStr ( OSType inOSType, StringPtr outString );
  88. void        PStrToOSType ( StringPtr inString, OSType* outOSType );
  89. void        AlertUser ( short messageCode, short errorNum, StringPtr theString );
  90. void        LocalToGlobalRect ( Rect* theRect );
  91. Boolean        IsMovableModal ( WindowRef theWindow );
  92.  
  93. #if DEBUGGING
  94. void        DebugStrNum ( Str255 str, SInt32 num );
  95. #endif
  96.  
  97.  
  98. #endif
  99.